package cn.jc.springframework.beans.factory.config;

import cn.jc.springframework.beans.BeansException;

/**
 * @Description:
 * @author: JC
 * @date: 2023/4/9 15:44
 */
public interface InstantiationAwareBeanPostProcessor extends BeanPostProcessor{


    /**
     * 在 Bean 对象执行初始化方法之前，执行此方法
     * @param beanClass
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessBeforeInstantiation(Class<?> beanClass, String beanName) throws BeansException;

}
